<template>
	<div id="app">
		<button type="button" class="mui-btn mui-btn-ok" @click="show" name="123123" id="" value="123123" >12324</button>
		<input v-model="parentMsg">
		<sub-item :msg="parentMsg"></sub-item>
	</div>
</template>

<script>
	import SubItem from "./SubItem.vue"
	let layer = require("layui-layer")

	export default{
		name:"TestView",
		data(){
			return {
				parentMsg:"123",
			}
		},
		methods:{
			show(event){
				// layer.msg("sdf");
				mui.toast("sdf")
			}
		},
		components: {
      		SubItem
    }
	}
</script>

<style scoped>
	#app{
		height: 20px;
		width: 60px;
		margin: 10px auto
	}

	button{
		height: 30px;
		width: 180px;
	}
</style>